LOCAL_PATH := $(call my-dir)

# compile zmatch.so
include $(CLEAR_VARS)
LOCAL_MODULE := src

LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../externals/cocos2dx/platform/third_party/android/libraries/$(TARGET_ARCH_ABI))\
		-lGLESv1_CM -llog -lz \
                -lpng \
                -lxml2 \
                -ljpeg

LOCAL_SRC_FILES := \
scenes/ZmSplashScene.cpp \
scenes/ZmRatingScene.cpp \
scenes/ZmOptionsScene.cpp \
scenes/ZmHowToPlay.cpp \
scenes/ZmGameOverScene.cpp \
scenes/ZmCreditsScene.cpp \
main_menu/ZmMainMenuScene.cpp \
main_menu/ZmMainMenuSceneAnimations.cpp \
main_menu/ZmMainMenuPhysicalLayer.cpp \
game/ui/ZmIngameMenu.cpp \
game/ui/ZmHud.cpp \
game/ui/ZmGeneratorPoints.cpp \
game/logic/ZmTutorial.cpp \
game/logic/ZmGameLayer.cpp \
game/logic/ZmFuse.cpp \
game/logic/ZmFigureFactory.cpp \
game/logic/ZmFigure.cpp \
game/logic/ZmCounter.cpp \
game/logic/ZmContactListener.cpp \
game/logic/ZmConditionQueue.cpp \
game/logic/ZmCondition.cpp \
game/logic/ZmBonusFactory.cpp \
game/logic/ZmBonuses.cpp \
game/ZmGameScene.cpp \
game/ZmGameSceneAnimations.cpp \
externals/GLES-Render.cpp \
common/zmWaitingLayer.cpp \
common/ZmPhysicalObject.cpp \
common/ZmPhysicalLayer.cpp \
common/ZmMainPhysicalObject.cpp \
AppDelegate.cpp \
../internals/zLib/data_exchange/ZLibNotifier.cpp \
../internals/zLib/common/ZLibCommon.cpp \
../internals/zLib/cocos2d_extentions/utility/ZLibCocos2dUtility.cpp \
../internals/zLib/cocos2d_extentions/nodes/ZLibNodeRGBA.cpp \
../internals/zLib/cocos2d_extentions/localization/ZLibStringUtils.cpp \
../internals/zLib/cocos2d_extentions/localization/ZLibLocale.cpp \
../internals/zLib/cocos2d_extentions/localization/ZLibDictMaker.cpp \
../internals/zLib/cocos2d_extentions/localization/ConvertUTF.c \
../internals/zLib/cocos2d_extentions/labels/ZLibLabelBMFont.cpp \
../internals/zLib/cocos2d_extentions/labels/ZLibLabelAtlas.cpp \
../internals/zLib/cocos2d_extentions/controls/ZLibSlider.cpp \
../internals/zLib/cocos2d_extentions/animations/ZLibAnimationFactory.cpp \

LOCAL_C_INCLUDES := $(LOCAL_PATH)/scenes \
                    $(LOCAL_PATH)/main_menu \
                    $(LOCAL_PATH)/game/ui \
                    $(LOCAL_PATH)/game/logic \
                    $(LOCAL_PATH)/game \
                    $(LOCAL_PATH)/externals \
		    $(LOCAL_PATH)/constants \
		    $(LOCAL_PATH)/common \
		    $(LOCAL_PATH) \
		    $(LOCAL_PATH)/../externals/cocos2dx/ \
		    $(LOCAL_PATH)/../externals/cocos2dx/include \
		    $(LOCAL_PATH)/../externals/cocos2dx/platform \
		    $(LOCAL_PATH)/../externals/cocos2dx/platform/third_party/android/iconv \
		    $(LOCAL_PATH)/../externals/cocos2dx/platform/third_party/android/libpng \
		    $(LOCAL_PATH)/../externals/cocos2dx/platform/third_party/android/libxml2 \
		    $(LOCAL_PATH)/../externals/cocos2dx/platform/third_party/android/libjpeg \
		    $(LOCAL_PATH)/../internals/zLib/data_organization \
                    $(LOCAL_PATH)/../internals/zLib/data_exchange \
                    $(LOCAL_PATH)/../internals/zLib/common \
                    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/utility \
                    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/nodes \
                    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/localization \
		    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/labels \
		    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/controls \
		    $(LOCAL_PATH)/../internals/zLib/cocos2d_extentions/animations \
 		    $(LOCAL_PATH)/../externals/CocosDenshion/include \
		    $(LOCAL_PATH)/../externals/Box2D \
		    $(LOCAL_PATH)/../externals/Box2D/..		    

# define the macro to compile through support/zip_support/ioapi.c                
LOCAL_CFLAGS := -DUSE_FILE32API
                                 
include $(BUILD_STATIC_LIBRARY)
